﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BootstrapAdmin.DataAccess.Models;

/// <summary>
/// 出站/存档信息明细表
/// </summary>
[Table("ops_archive_item")]
public class ArchiveItem
{
    [Key]
    public int Id { get; set; }

    public int ArchiveId { get; set; }

    /// <summary>
    /// 触发点
    /// </summary>
    public string? Tag { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "名称")]
    public string? Name { get; set; }

    /// <summary>
    /// 值
    /// </summary>
    [Display(Name = "值")]
    public string? Value { get; set; }

    /// <summary>
    /// 是否是数组值
    /// </summary>
    public bool IsArray { get; set; }

    /// <summary>
    /// 上限值
    /// </summary>
    [Display(Name = "")]
    public decimal? Higher { get; set; }

    /// <summary>
    /// 下限值
    /// </summary>
    [Display(Name = "")]
    public decimal? Lower { get; set; }
}
